package com.ruoyi.course.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 作业对象 t_homework
 * 
 * @author ruoyi
 * @date 2024-11-30
 */
public class THomework extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 课程ID */
    @Excel(name = "课程ID")
    private Long cId;

    /** 试卷ID */
    @Excel(name = "试卷ID")
    private Long pId;

    /** 作业名称 */
    @Excel(name = "作业名称")
    private String name;

    /** 作业结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "作业结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date deadline;

    /** 未批改数 */
    @Excel(name = "未批改数")
    private Long unmarkNum;

    /** 已批改数 */
    @Excel(name = "已批改数")
    private Long markedNum;

    /** 未交数 */
    @Excel(name = "未交数")
    private Long unsubmitNum;

    /** 逻辑删除 */
    @Excel(name = "逻辑删除")
    private Long isDelete;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setcId(Long cId) 
    {
        this.cId = cId;
    }

    public Long getcId() 
    {
        return cId;
    }
    public void setpId(Long pId) 
    {
        this.pId = pId;
    }

    public Long getpId() 
    {
        return pId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setDeadline(Date deadline) 
    {
        this.deadline = deadline;
    }

    public Date getDeadline() 
    {
        return deadline;
    }
    public void setUnmarkNum(Long unmarkNum) 
    {
        this.unmarkNum = unmarkNum;
    }

    public Long getUnmarkNum() 
    {
        return unmarkNum;
    }
    public void setMarkedNum(Long markedNum) 
    {
        this.markedNum = markedNum;
    }

    public Long getMarkedNum() 
    {
        return markedNum;
    }
    public void setUnsubmitNum(Long unsubmitNum) 
    {
        this.unsubmitNum = unsubmitNum;
    }

    public Long getUnsubmitNum() 
    {
        return unsubmitNum;
    }
    public void setIsDelete(Long isDelete) 
    {
        this.isDelete = isDelete;
    }

    public Long getIsDelete() 
    {
        return isDelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("cId", getcId())
            .append("pId", getpId())
            .append("name", getName())
            .append("deadline", getDeadline())
            .append("unmarkNum", getUnmarkNum())
            .append("markedNum", getMarkedNum())
            .append("unsubmitNum", getUnsubmitNum())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("isDelete", getIsDelete())
            .append("remark", getRemark())
            .toString();
    }
}
